package com.czl.module_service.view

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import me.yokeyword.fragmentation.SupportFragment

/**
 * @author by xubin,
 * @date on 2022/3/7.
 * PS: Not easy to write code, please indicate.
 */
class ViewPagerFmAdapter(
    manager: FragmentManager,
    private val mFragments: List<SupportFragment>
) : FragmentStatePagerAdapter(manager) {
    override fun getCount(): Int {
        return mFragments.size
    }

    override fun getItem(position: Int): Fragment {
        return mFragments[position]
    }
}